import request from '@/utils/request'

export default{
    getCountryList() {
        return request({
          url: `/country/selectCountryAll`,
          method: `get`
        })
    },

    getCountryById(id) {
      return request({
        url: `/country/getCountryById/${id}`,
        method: `get`
      })
    },

    insertCountry(country) {
      return request({
        url: `/country/insertCountry`,
        method: `post`,
        data: country
      })
    },

    updateCountry(country) {
      return request({
        url: `/country/updateCountry`,
        method: `post`,
        data: country
      })
    },

    deleteCountryById(id) {
      return request({
        url: `/country/deleteCountryById/${id}`,
        method: `delete`
      })
    },
    
}